<%@ include file="common.jsp"%>

<title>Welcome To Armory</title>

<script type="text/javascript">
	$(document).ready(function() {
		appInnerLayout = $('#outerContentDiv').layout({
			center__paneSelector : '#contentDiv',
			north__size : 32,
			north__spacing_open : 0,
			north__spacing_close : 0,
			north__paneSelector : '#navigation',
			north__showOverflowOnHover : true
		});
		appMainLayout.resizeAll();
		appInnerLayout.resizeAll();
	});
	createChangeModuleDialog();
</script>

<!-- Main Menu -->
<div id="navigation" class="ui-layout-north menuBar menuFontColor mainMenuColor">
	<table style="width: 100%; height: 100%; border-spacing: 0px;">
		<tr>
			<td class="zeroPadding" style="width: 85%;">
				<ul id="mymenu" class="menuItem1 mainMenuColor menuFont">
					<li>
						<div class="menuItem1LinkIcon">
							<a class="menuItem1onHoverOut" id="mainMenu1" href="#" onclick="javascript:loadHomePage();">
							<span
							style="height: 32px !important; line-height: 32px; vertical-align: middle;">
									&nbsp;<img alt=""
									src="./customTheme/Icons/BlueLotus_DMS_icons-07.png"/>
							</span> </a>
							<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/final40.png"/>
						</div>	
					</li>
					<li>
						<div class="menuItem1Link">
							<a class="menuItem1onHoverOut menuFontColor" id="mainMenu2" href="#"
							onmouseover="javascript:showsubmenu(2)"
							onmouseout="javascript:hideSubMenu(2)"> <span>Retrieval</span>
							</a>
							<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/final40.png">
						</div>
					</li>
					<li>
						<div class="menuItem1Link">
							<a class="menuItem1onHoverOut menuFontColor" id="mainMenu3" href="#"
							onmouseover="javascript:showsubmenu(3)"
							onmouseout="javascript:hideSubMenu(3)"><span>Upload</span>
							</a>
							<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/final40.png">
						</div>
					</li>
					<li>
						<div class="menuItem1Link">
							<a class="menuItem1onHoverOut menuFontColor" id="mainMenu4" href="#"
							onmouseover="javascript:showsubmenu(4)"
							onmouseout="javascript:hideSubMenu(4)"><span>Reports</span>
							</a>
							<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/final40.png">
						</div>
					</li>
					<li>
						<div class="menuItem1Link">
							<a class="menuItem1onHoverOut" id="mainMenu5" href="javascript:loadContentFromMainMenu('workflow.htm');"><span
							style="color: #E4A039;">Task List</span>
							</a>
							<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/final40.png">
						</div>
					</li>
					<sec:authorize access="hasAnyRole('ROLE_DMSADMIN','ROLE_SU')">
					<li>
						<div class="menuItem1Link">
							<a class="menuItem1onHoverOut" id="mainMenu6" href="javascript:loadAdminWindow();"><span
							style="color: #E4A039;">Admin Task</span>
							</a>
							<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/final40.png">
						</div>
					</li>
					</sec:authorize>
				</ul>
				
			</td>
			<td width="15%" class="zeroPadding" style="position: fixed;">
<!-- 				<table class="mainMenuColor" style="width: 100%; height: 100%; border-spacing: 0px; padding: 0px !important;">
					<tr>
						<td class="zeroPadding" align="left" style="position: fixed;">
 -->							<ul id="mymenu" class="menuItem1" style="vertical-align: top;">
								<li>
									<c:if test="${enableChangePassword eq 1}">
									<div class="menuItem1LinkIcon">
										<a class="menuItem1onHoverOut" id="mainMenu7" href="#"
											style="width: 30px !important;" onclick="showChangePwdDialog();"> <span
											style="height: 32px !important; line-height: 32px; vertical-align: middle; border-style: none;">
												&nbsp;<img alt=""
												src="./customTheme/Icons/BlueLotus_DMS_icons-22.png" style="cursor: pointer;" /> </span> </a> <img
											class="mainMenuSeparator" alt=""
											src="./customTheme/Icons/final40.png">
									</div>
									</c:if>
								</li>
								<li>
									<div class="menuItem1LinkIcon">
										<a class="menuItem1onHoverOut" id="mainMenu8" href="#"
											style="width: 30px !important;"> <span
											style="height: 32px !important; line-height: 32px; vertical-align: middle;">
												&nbsp;<img alt=""
												src="./customTheme/Icons/BlueLotus_DMS_icons-23.png" style="cursor: pointer;" /> </span> </a> <img
											class="mainMenuSeparator" alt=""
											src="./customTheme/Icons/final40.png">
									</div></li>
								<li>
									<div class="menuItem1LinkIcon">
										<a class="menuItem1onHoverOut" id="mainMenu9" href="#"
											style="width: 30px !important;"> <span
											style="height: 32px !important; line-height: 32px; vertical-align: middle;">
												&nbsp;<img alt=""
												src="./customTheme/Icons/BlueLotus_DMS_icons-24.png" style="cursor: pointer;" /> </span> </a> <img
											class="mainMenuSeparator" alt=""
											src="./customTheme/Icons/final40.png">
									</div></li>
							</ul><!-- </td>
					</tr>
				</table> -->
			</td>
		</tr>
		<tr>
			<td colspan="2" style="padding: 0px;">
				<div id="sublinks" class="childMenuColor menuFont">
					<ul id="subMenu2" class="displayNone">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(2)"
								onmouseout="javascript:hideSubMenu(2)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/searchDocument.htm');"
								>Search Document</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>		
						</li>
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(2)"
								onmouseout="javascript:hideSubMenu(2)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/browseDocument.htm');"
								>Browse Document</a>
								
							</div>		
						</li>
					</ul>
					<ul id="subMenu3" class="displayNone">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(3)"
								onmouseout="javascript:hideSubMenu(3)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/upload.htm');"
								>Upload new Document</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>		
						</li>
						<%-- <sec:authorize ifAnyGranted="ROLE_CC">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(3)"
								onmouseout="javascript:hideSubMenu(3)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/renew.htm');"
								>Renew existing Documents</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>
						</li>
						</sec:authorize> --%>
						<sec:authorize access="hasAnyRole('ROLE_APPROVER','ROLE_CC')">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(3)"
								onmouseout="javascript:hideSubMenu(3)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/versionChange.htm');"
								>Version Change</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>
						</li>
						</sec:authorize>
						<sec:authorize access="hasAnyRole('ROLE_APPROVER','ROLE_CC')">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(3)"
								onmouseout="javascript:hideSubMenu(3)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/linkDocument.htm');"
								>Linked Documents</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>
						</li>
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(3)"
								onmouseout="javascript:hideSubMenu(3)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/documentActiveReactive.htm');"
								>Deactiviate / Reactivate</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>
						</li>
						</sec:authorize>
						<sec:authorize access="hasAnyRole('ROLE_CC','ROLE_APPROVER')">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(3)"
								onmouseout="javascript:hideSubMenu(3)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/changeDocPermissions.htm');"
								>Change Permission Rights</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>
						</li>
						</sec:authorize>
						<sec:authorize access="hasAnyRole('ROLE_CC','ROLE_APPROVER')">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(3)"
								onmouseout="javascript:hideSubMenu(3)">
								<a class="menuFontColor"
								href="javascript:loadContentFromMainMenu('doc/changeVaultDetails.htm');"
								>Change Vault Details</a>
							</div>
						</li>
						</sec:authorize>
					</ul>
					<ul id="subMenu4" class="displayNone">
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(4)"
								onmouseout="javascript:hideSubMenu(4)">
								<a class="menuFontColor" 
								href="javascript:expiredDocReports();"
								>Expired Documents</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>		
						</li>
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(4)"
								onmouseout="javascript:hideSubMenu(4)">
								<a class="menuFontColor"
								href="javascript:nearExpiryReports();"
								>Documents Near Expiry</a>
								<img class="mainMenuSeparator" alt="" src="./customTheme/Icons/BlueLotus_DMS_icons-41.png">
							</div>
						</li>
						<li>
							<div class="subMenuItem1Link" onmouseover="javascript:showsubmenu(4)"
								onmouseout="javascript:hideSubMenu(4)">
								<a class="menuFontColor"
								href="javascript:vaultDetailsReports();"
								>Documents Vault
									Details</a>
							</div>
						</li>
					</ul>
				</div>
			</td>
		</tr>
	</table>
</div>

<div id="contentDiv" class="ui-layout-center centerBodyColor">
	<%-- <tiles:insertAttribute name="dashboard"></tiles:insertAttribute> --%>
</div>
<div id="changeModule" title="Change Module">
    <table>
        <tr>
            <c:forEach items="${appMap}" var="item">
                <td><a target="_blank" href="<c:url value='changeModule.htm' />?appId=${item.key}" ><img src="<c:url value='./customTheme/images/changeModuleImages/${item.key}.png' />" /></a></td>
                <td>&nbsp;</td>   
            </c:forEach>
        </tr>
       
        <tr>
            <c:forEach items="${appMap}" var="item">
                <td class="labels" align="center"><a target="_blank" href="<c:url value='changeModule.htm' />?appId=${item.key}" > ${item.value} </a></td>
                <td>&nbsp;</td>
            </c:forEach>
        </tr>
    </table>   
</div>
